//
//  ZCBaseSqliteTool.h
//  VoiceMusic
//
//  Created by dllo on 15/10/23.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "ZCDetailListModel.h"

typedef NS_ENUM(NSUInteger, SelectTable) {
    InTable,
    NotInTable,
    SelectError,
};


@interface ZCBaseSqliteTool : NSObject
{
    sqlite3 *dbPoint;
}

+(ZCBaseSqliteTool *)shareZCMusicDataTool;

//打开数据库
-(void)openDB;
//创建表格
-(void)createTable;


//插入数据
-(void)insertMusic:(ZCDetailListModel *)music;
//删除
-(void)deleteMusic:(ZCDetailListModel *)music;
//判断
-(SelectTable )isInTable:(ZCDetailListModel *)music;

//查询
-(NSMutableArray *)selectAllMusicModel;



@end
